<template>
  <div class="vu-header">
    <div v-if="!options.isHideLeft" class="vu-header-title" @click="tapBack">
      <img src="../../assets/image/back.png" alt="">
    </div>
    <span><span style="font-weight: bold;">V</span>uu-<span style="font-weight: bold;">P</span>ull{{title}}</span>
  </div>
</template>
<script>
  export default {
    'name': 'vuu-header',
    'props': {
      'title': {
        type: String
      },
      'options': {
        type: Object,
        default() {
          return {}
        }
      }
    },
    methods: {
      'tapBack'() {
        history.back()
      }
    }
  }
</script>
<style scoped>
  /*--@Desc vu-header app的底部导航--*/
  .vu-header {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height: 51px;
    line-height: 51px;
    font-size: 18px;
    text-align: center;
    box-sizing: border-box;
    z-index: 100;
    background: #444;
    color: #fff;
    overflow: hidden;
  }

  .vu-header-title {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 15px;
    min-width: 51px;
    letter-spacing: 1px;
    text-align: justify;
  }

  .vu-header-title img {
    margin-top: 11px;
    width: 28px;
  }

</style>
